package Objetos;

import java.util.ArrayList;
import java.util.Iterator;

public class xxx {
   public static void main(String[] args){
	   ArrayList arrayList = new ArrayList();

	   arrayList.add("1");
	   arrayList.add("2");
	   arrayList.add("3");
	   arrayList.add("4");
	   arrayList.add("5");


	   Iterator i = arrayList.iterator();


	   while(i.hasNext())
	   System.out.println("Elemento del arreglo: "+i.next()); 
   }
}
